<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        var scope = 'global'
        function cc() {
            var scope = 'local'
            return new Function('return scope')  // 无法捕获局部作用域
        }
        // 通过Function()构造函数 返回得函数使用得不是局部作用域
      console.log(cc()())  
      
      
      
      
      // global


      
      //借用 写法   但是只能一个一个打印，否则一直是jieki
      const man = 'jieki'
        const woman = 'mali'
        man.__proto__.name='mail'
        console.log(man.name)
        woman.__proto__.name='jieki'
       console.log(woman.name)
    </script>
</body>
</html>